package br.ucb.mercadojogador.HIB;
import java.util.List;
import org.hibernate.Session;
import br.ucb.mercadojogador.beans.MercadoLog;

public class MercadoLogHIB {

	@SuppressWarnings("unchecked")
	public List<MercadoLog> listar() {
	Session session = HibernateUtil.getSession();
		try {
			return session.createCriteria(MercadoLog.class).list();
		} finally {
			session.close();
		}
	}
}
